package com.jy.api.controller.pos;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class ApiController {


    @GetMapping(path = "/pos")
    public ResponseEntity pos() {
        MultiValueMap<String, String> map = new LinkedMultiValueMap<>();
        map.add("Location", String.format("https://pos-shell.huoxingy.com/?v=%s#/login", new Date().getTime()));
        return new ResponseEntity(map, HttpStatus.MOVED_PERMANENTLY);
    }


}
